package com.dhcc.bpm.modules.metadata.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.common.text.Convert;
import com.dhcc.bpm.modules.metadata.entity.ReqMetadata;
import com.dhcc.bpm.modules.metadata.mapper.ReqMetadataMapper;
import com.dhcc.bpm.modules.metadata.service.IReqMetadataService;
import com.dhcc.bpm.modules.metadata.vo.ReqMetadataVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName ReqMetadataServiceImpl
 * @Description 请求元数据关联表 服务实现类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_req_metadata")
public class ReqMetadataServiceImpl extends ServiceImpl<ReqMetadataMapper, ReqMetadata> implements IReqMetadataService {
	@Autowired
	private ReqMetadataMapper reqMetadataMapper;
	@Override
	public IPage<ReqMetadataVO> selectReqMetadataPage(IPage<ReqMetadataVO> page, ReqMetadataVO reqMetadata) {
		return page.setRecords(baseMapper.selectReqMetadataPage(page, reqMetadata));
	}
	@Override
	public int deleteReqMetadata(Long opcApiIdReq, String ids) {
		return reqMetadataMapper.deleteReqMetadata(opcApiIdReq, Convert.toLongArray(ids));
	}
}
